import request from '@/utils/request'
// 获取品牌列表
export const reqGetTradeMark = (params)=>request({url:`/admin/product/baseTrademark/${params.page}/${params.limit}`,method:'get'}) 

// 添加品牌:不需要携带id，id由服务器生成
export const reqAddTradeMark = (params)=>request({
    url:'/admin/product/baseTrademark/save',
    method:'post',
    data:{
        logoUrl:params.logoUrl,
        tmName:params.tmName
    }
})

// 修改品牌：需要携带id
export const reqEditTrademark = (params)=>request({
    url:'/admin/product/baseTrademark/update',
    method:'put',
    data:{
        id:params.id,
        logoUrl:params.logoUrl,
        tmName:params.tmName
    }
})

// 删除品牌
export const reqDeleteTrademark = (params)=>request({
    url:`/admin/product/baseTrademark/remove/${params.id}`,
    method:'delete'
})